﻿namespace Chain.Wechat
{
    using System;
    using System.Runtime.CompilerServices;
    using System.Xml;

    public class LocationEventRequest : EventRequest
    {
        
        private double _Latitude;
        
        private double _Longitude;
        
        private double _Precision;

        public LocationEventRequest(XmlDocument input) : base(input)
        {
            XmlNode root = base.XmlDoc.FirstChild;
            this.Latitude = double.Parse(root["Latitude"].InnerText);
            this.Longitude = double.Parse(root["Longitude"].InnerText);
            this.Precision = double.Parse(root["Precision"].InnerText);
        }

        public double Latitude
        {
            
            get
            {
                return this._Latitude;
            }
            
            set
            {
                this._Latitude = value;
            }
        }

        public double Longitude
        {
            
            get
            {
                return this._Longitude;
            }
            
            set
            {
                this._Longitude = value;
            }
        }

        public double Precision
        {
            
            get
            {
                return this._Precision;
            }
            
            set
            {
                this._Precision = value;
            }
        }
    }
}

